﻿
@{
    ViewBag.Title = "EmergencyTeamAdd";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}


@section css{
    <link href="~/Assets/css/lib/fileinput.css" rel="stylesheet" />
    <link href="~/Assets/css/lib/bootstrap-datetimepicker.min.css" rel="stylesheet" />
}

<header id="topbar">
    <div class="topbar-left">
        <ol class="breadcrumb">
            <li class="crumb-active">
                <a>添加应急队伍成员</a>
            </li>
            <li class="crumb-link">
                <a>应急预案</a>
            </li>
            <li class="crumb-link">
                <a>应急队伍</a>
            </li>
            <li class="crumb-trail">添加应急队伍成员</li>
        </ol>
    </div>
</header>

<div id="content" ng-cloak ng-controller="EmergencyController" ng-init="AddModel={};page='@(Request.QueryString["page"].IsEmpty() ? "1" : Request.QueryString["page"])';">
    <div class="row">
        <div class="col-md-12">
            <div class="panel panel-info panel-border top mb35">
                <div class="panel-heading">
                    <span class="panel-title">添加应急队伍成员</span>
                </div>
                <div class="panel-body">
                    <form class="form-horizontal" role="form">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">成员姓名</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" ng-model="AddModel.Name" placeholder="此处输入成员姓名" ng-init="AddModel.Name=''" maxlength="100" />
                            </div>
                            <label class="control-label">{{AddModel.Name.length}}/100</label>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">联系方式</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" ng-model="AddModel.Phone" placeholder="此处输入联系方式" ng-init="AddModel.Phone=''" maxlength="100" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">职务</label>
                            <div class="col-sm-8">
                                <input type="text" class="form-control" ng-model="AddModel.Title" placeholder="此处输入职务" ng-init="AddModel.Title=''" maxlength="100" />
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">显示顺序</label>
                            <div class="col-sm-8">
                                <input type="number" class="form-control" ng-model="AddModel.SortBy" placeholder="显示顺序" ng-init="AddModel.SortBy=''" />
                            </div>
                        </div>
                    </form>
                </div>
                <div class="panel-footer">
                    <div class="col-lg-2"></div>
                    <button type="button" class="btn btn-primary" ng-click="AddEmergencyTeam(AddModel);">提交</button>
                    <div class="col-lg-2">

                    </div>
                    <a class="btn btn-warning" href="EmergencyTeamList?page={{page}}">返回</a>
                </div>
            </div>
        </div>
    </div>

</div>

@section Js{
    <script src="~/Bussiness/js/libs/upload.js"></script>
    <script src="~/Bussiness/js/pg/EmergencyPlan.js?v=@DateTime.Now.ToString("yyMMddHHmm")"></script>
    <script src="~/Bussiness/js/libs/moment.min.js"></script>
    <script src="~/Bussiness/js/libs/locales/date/zh-cn.js"></script>
    <script src="~/Bussiness/js/libs/bootstrap-datetimepicker.min.js"></script>
    <script src="~/Bussiness/js/libs/angularjs-datepicker.js"></script>
    <script src="~/Bussiness/js/libs/fileinput.js"></script>
    <script src="~/Bussiness/js/libs/zh.js"></script>
    <script>
        $('#docfiles').fileinput({
            language: 'zh'
        });
    </script>
}

